<nb-card>
  <nb-card-header>
    Smart Table
  </nb-card-header>
  <nb-card-body>
    <table [nbTreeGrid]="dataSource" nbSort (sort)="changeSort($event)" equaColumnsWidth>

      <tr nbTreeGridHeaderRow *nbTreeGridHeaderRowDef="defaultColumns"></tr>
      <tr nbTreeGridRow *nbTreeGridRowDef="let row; columns: defaultColumns"></tr>

      <ng-container *ngFor="let column of defaultColumns" [nbTreeGridColumnDef]="column">
        <th nbTreeGridHeaderCell [nbSortHeader]="getDirection(column)" *nbTreeGridHeaderCellDef>
          {{column}}
        </th>

        <td nbTreeGridCell *nbTreeGridCellDef="let row" [innerHTML]="row.data[column]">
          <!-- {{row.data[column]}} -->
        </td>

      </ng-container>

      <!-- <ng-container [nbTreeGridColumnDef]="actionColumns">
        <th nbTreeGridHeaderCell >
          {{actionColumns}}
        </th>
        <td>修改 删除</td>
      </ng-container> -->

    </table>
  </nb-card-body>
</nb-card>
